<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>修改成功</title>
    <style>
        html,
        body {
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f9f9f9;
        }

        .container {
            text-align: center;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 20px;
            max-width: 400px;
        }

        h1 {
            margin-top: 0;
        }

        p {
            margin-bottom: 20px;
        }

        .avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: #ccc;
            margin: 0 auto 20px;
        }

        .message {
            font-weight: bold;
        }

        .button {
            background-color: #4CAF50;
            color: #fff;
            border: none;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>修改成功</h1>
    <div class="avatar"></div>
    <p class="message">恭喜！您的信息已成功修改。</p>
    <p>您的昵称：<span id="username"></span></p>
    <p>您的密码：<span id="password"></span></p>
    <a class="button" href="person.html">返回个人中心</a>
</div>

<script>
    // 获取 URL 参数
    // function getURLParameter(name) {
    //     name = name.replace(/[[]/, '\\[').replace(/[\]]/, '\\]');
    //     let regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
    //     let results = regex.exec(location.search);
    //     return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
    // }

    // 设置用户名和密码
    // document.getElementById('username').innerText = getURLParameter('username');
    // document.getElementById('password').innerText = getURLParameter('password');
</script>
</body>
</html>